package com.jthinker.blog.bean.enu;

/**
 * User: Gang Chen
 * Date: 2015/7/11 20:56
 */
public enum SortOrder
{
    ASC, DESC;

    public static final SortOrder parse(String raw)
    {
        for (SortOrder order : SortOrder.values())
        {
            if (order.toString().equalsIgnoreCase(raw))
            {
                return order;
            }
        }

        return null;
    }
}
